﻿using SqlSugar;
using Zhp.SqlSugar.Entity;
using Zhp.Workflow.Models;

namespace Zhp.Workflow.Entity
{
    [SugarTable("WF_Notify")]
    public class WorkflowNotify : BaseEntity<WorkflowNotify, long>
    {
        [SugarColumn(IsNullable = false, ColumnDescription = "提交者ID")]
        public long SubmitterId { get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "提交者")]
        public string SubmitterName { get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "流程名称")]
        public string WorkflowName { get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "流程ID")]
        public string WorkflowId { get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "实体类型")]
        public string ModelType { get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "实体ID")]
        public string ModelID { get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "审批状态")]
        public ApproveStatusEnum ApproveStatus { get; set; }

        [SugarColumn(IsNullable = true, ColumnDescription = "审批备注")]
        public string ApproveRemark { get; set; }

        [SugarColumn(IsNullable = false, ColumnDescription = "是否已发送")]
        public bool IsSend { get; set; }

        [SugarColumn(IsNullable = true, ColumnDescription = "消息发送时间")]
        public DateTime? SendTime { get; set; }
    }
}
